import request from '@/utils/request'

export default {
    getBannerListPage(current, limit) {
        return request({
            url: `/educms/banneradmin/pageBanner/${current}/${limit}`,
            method: 'get'
        })
    },
    //删除讲师
    deleteBannerId(id) {
        return request({
            url: `/educms/banneradmin/remove/${id}`,
            method: 'delete'
        })
    },
    //添加讲师
    addBanner(banner) {
        return request({
            url: `/educms/banneradmin/addBanner`,
            method: 'post',
            data: banner
        })
    },
    //根据id查询讲师
    getBannerInfo(id) {
        return request({
            url: `/educms/banneradmin/get/${id}`,
            method: 'get'
        })
    },
    //修改讲师
    updateBannerInfo(banner) {
        return request({
            url: `/educms/banneradmin/update`,
            method: 'post',
            data: banner
        })
    }
}
